#include<stdio.h>
// Created by baoch on 2024/11/3.
int main()
{
    int n;//有N个整数需要排序
    int i = 0;//数组下标
    int max = 0;
    scanf("%d",&n);
    int arr[n];
    for(i;i < n;i++)
    {
        scanf("%d",&arr[i]);
    }
    for(int j = 0;j < n;j++)//j控制循环
    {
        for( i = 0;i < n - j - 1;i++)
        {
            if(arr[i] > arr[i+1])
            {
                max = arr[i];
                arr[i] = arr[i+1];
                arr[i+1] = max;
            }
        }
    }
    for(i = 0;i < n;i++)
    {
        printf("%d ",arr[i]);
    }
}
